<template>
 <div>
  <!-- v-bind指令:可以动态设置标签的属性 -->
  <!-- v-bind:属性名='值 -->
  <a href="https://www.baidu.com">去百度</a>
  <a v-bind:href="url">去黑马</a>
  <img :src="img" />
 </div>
</template>
<script>
export default {
 data() {
 return {
  url:'https://img1.baidu.com/it/u=1351382173,1210454506&fm=253&fmt=auto&app=138&f=JPEG?w=640&h=437',

  img:'https://img1.baidu.com/it/u=1351382173,1210454506&fm=253&fmt=auto&app=138&f=JPEG?w=640&h=437'
 }
 },
 methods:{
 },
}
</script>
<style lang="less" scoped>

</style>
